package cn.dnf.product.domain;

import cn.dnf.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class Product extends BaseDomain {
   private String name;
   private BigDecimal costprice;
   private BigDecimal saleprice;
   private String resources;
   private Long salecount;
   private Long state;
   @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
   private Date offsaletime;
   @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
   private Date onsaletime;
   @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
   private Date createtime=new Date();

   private ProductDetail productDetail;
};
